package FacadePattern;

public class LightFacade implements Light{
    private LivingLight livingLight = new LivingLight();
    private BedroomLight bedroomLight = new BedroomLight();

    @Override
    public void on() {
        livingLight.on();
        bedroomLight.on();
        System.out.println("灯已全部打开~");
    }

    @Override
    public void off() {
        livingLight.off();
        bedroomLight.off();
        System.out.println("灯已全部关闭~");
    }
}
